package
{
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	public class DrawCurve implements IGetRoadArr
	{
//----------------------------------------------------------------------------------------------------PUBLIC---------------------------------
													//================ Properties ===============
										
													//================ Public Methods ===========
		public function DrawCurve(spr:Sprite):void{
			container=spr;
			initSpr();
			initVar();
			initListener();
		}
		public function getRoadArr():Array{
			return null;
		}
		public function set color(cl:uint):void{
			_color=cl;
		}
		public function get color():void{
			return _color;
		}
//----------------------------------------------------------------------------------------------------PRIVATE--------------------------------													
													//================ Properties ===============
		private var _color:uint;
		private var container:Sprite;//由调用的容器传入，不必初始化；
		private var ptList:Array;//存放绘制曲线的控制点；
		private var resultList:Array;//计算过后的曲线点集合；
		//private var dragPt:         //可被拖动的控制点object；
													//================ Private Methods ==========
		private function initSpr():void{
			container.addChild(this);
		}
		private function initVar():void{
			_color=0;//默认为黑色；
		}
		private function initListener():void{
			container.addEventListener(MouseEvent.CLICK,clickHandler);
			container.addEventListener(MouseEvent.MOUSE_DOWN,downHandler);
			container.addEventListener(MouseEvent.MOUSE_MOVE,moveHandler);
			container.addEventListener(MouseEvent.MOUSE_UP,upHandler);
		}
		private function clickHandler(evt:MouseEvent):void{
			
		}	
		private function downHandler(evt:MouseEvent):void{
			
		}	
		private function moveHandler(evt:MouseEvent):void{
			
		}
		private function upHandler(evt:MouseEvent):void{
			
		}
	}
}
	import flash.display.Shape;
	import flash.display.Graphics;
	class Anchor extends Shape{
		public function Anchor():void{
			init();
		}
		private function init():void{
			var gr:Graphics=this.graphics;
			gr.lineStyle(2,0X454545,.6);
			gr.drawCircle(0,0,5);
			gr.beginFill(0X454545,.8);
			gr.drawCircle(0,0,1);
			gr.endFill();
		}
	}
	
	
	